<template>
	<view class="">
		<cu-custom bgColor="bg-gradual-green" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">身体测试报告</block>
		</cu-custom>

		<view style="width: 100%;text-align: center;border-bottom: 1upx solid #f6f6f6;height: 100upx;line-height: 100upx;">
			<view style="border-bottom: 1upx solid #f00;width: 150upx;margin-left: 300upx;color: #666;">
				健康评估
			</view>
		</view>
		<!-- 第一个进度条 BMI 无 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						BMI
					</view>
					<view style="font-size: 38upx;color: #007AFF;margin-top: 20upx;">
						{{data.bmi}}
					</view>
				</view>
				<view @click="toggle('BMI')">
					<image v-if="!BMI" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="BMI" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#99ADEF" :percent="(data.BMI/50*100).toFixed(1)" activeColor="#4B70EE" active stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏瘦
					</view>
					<view>
						标准
					</view>
					<view>
						超重
					</view>
					<view>
						肥胖
					</view>
				</view>
				<view v-if="BMI" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">18.5</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">25</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">30</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
			</view>
		</view>
		<!-- 第二个进度条 体脂率 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						体脂率
					</view>
					<view style="font-size: 38upx;color: #F8B753;margin-top: 20upx;">
						{{data.bfr}}%
					</view>
				</view>
				<view @click="toggle('TZL')">
					<image v-if="!TZL" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="TZL" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#F8DEB7" :percent="(data.bfr/50*100).toFixed(1)" activeColor="#F8B753" active stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						偏高
					</view>
					<view>
						超高
					</view>
				</view>
				<view v-if="TZL" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">18.5</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">25</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">30</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
			</view>
		</view>
		<!-- 第三个进度条 腰臀比 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						腰臀比
					</view>
					<view style="font-size: 38upx;color: #007AFF;margin-top: 20upx;">
						{{data.waistHipRatio}}
					</view>
				</view>
				<view @click="toggle('YTB')">
					<image v-if="!YTB" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="YTB" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#99ADEF" :percent="(data.waistHipRatio/2*100).toFixed(1)" activeColor="#4B70EE" active
					 stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						低风险
					</view>
					<view>
						中风险
					</view>
					<view>
						高风险
					</view>
					<view>
						极高风险
					</view>
				</view>
				<view v-if="YTB" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">0.5</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">1</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">1.5</view>
					<view style="width: 10upx;height: upx;background-color: #4B70EE;"></view>
				</view>
			</view>
		</view>

		<view style="width: 100%;text-align: center;border-bottom: 1upx solid #f6f6f6;height: 100upx;line-height: 100upx;">
			<view style="border-bottom: 1upx solid #f00;width: 150upx;margin-left: 300upx;color: #666;">
				身体测量
			</view>
		</view>
		<view style="margin: 5%;display: flex;flex-wrap: wrap;background-color: #F7F7F7;">

			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					身高(cm)
				</view>
				<view>
					{{data.height}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					体重(kg)
				</view>
				<view>
					{{data.weight}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					血压(mmHg)
				</view>
				<view>
					{{data.bloodPressure}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					心率(bpm)
				</view>
				<view>
					{{data.heartBeat}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					胸围(cm)
				</view>
				<view>
					{{data.bust}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					肩围(cm)
				</view>
				<view>
					{{data.shoulderCir}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					腰围(cm)
				</view>
				<view>
					{{data.waistCir}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					臀围(cm)
				</view>
				<view>
					{{data.hipsCir}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					左上臂围(cm)
				</view>
				<view>
					{{data.leftArm}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					右上臂围(cm)
				</view>
				<view>
					{{data.rightArm}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					左大腿围(cm)
				</view>
				<view>
					{{data.leftThigh}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					右大腿围(cm)
				</view>
				<view>
					{{data.rightThigh}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					左小腿围(cm)
				</view>
				<view>
					{{data.leftCalf}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
				<view style="margin: 50upx 0 30upx 0;">
					右小腿围(cm)
				</view>
				<view>
					{{data.rightCalf}}
				</view>
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
			</view>
			<view style="width: 25%;text-align: center;height: 190upx;border-bottom: 1upx solid #DCDCDC;border-right: 1upx solid #DCDCDC;">
			</view>
		</view>

		<view style="width: 100%;text-align: center;border-bottom: 1upx solid #f6f6f6;height: 100upx;line-height: 100upx;">
			<view style="border-bottom: 1upx solid #f00;width: 150upx;margin-left: 300upx;color: #666;">
				成分测试
			</view>
		</view>
		<!-- 第四个进度条 基础代谢 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						基础代谢
					</view>
					<view style="font-size: 38upx;color: #82CE59;margin-top: 20upx;">
						{{data.mr}}
					</view>
				</view>
				<view @click="toggle('JCDX')">
					<image v-if="!JCDX" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="JCDX" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#A5CC90" :percent="(data.mr/3000*100).toFixed(1)" activeColor="#82CE59" active
					 stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						超高
					</view>
					<view>
						极高
					</view>
				</view>
				<view v-if="JCDX" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">1200</view>
					<view style="width: 10upx;height: 20upx;background-color: #82CE59;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">1500</view>
					<view style="width: 10upx;height: 20upx;background-color: #82CE59;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">1800</view>
					<view style="width: 10upx;height: 20upx;background-color: #82CE59;"></view>
				</view>
			</view>
		</view>
		<!-- 第五个进度条 体重 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						体重
					</view>
					<view style="font-size: 38upx;color: #F8B753;margin-top: 20upx;">
						{{data.weight}}kg
					</view>
				</view>
				<view @click="toggle('TZ')">
					<image v-if="!TZ" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="TZ" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#F8DEB7" :percent="(data.weight/146.4*100).toFixed(1)" activeColor="#F8B753" active
					 stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						超重
					</view>
					<view>
						肥胖
					</view>
				</view>
				<view v-if="TZ" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">59.8</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">73.2</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">79.8</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
			</view>
		</view>
		<!-- 第六个进度条 脂肪量 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						脂肪量
					</view>
					<view style="font-size: 38upx;color: #F8B753;margin-top: 20upx;">
						{{data.vfdata}}
					</view>
				</view>
				<view @click="toggle('ZFL')">
					<image v-if="!ZFL" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="ZFL" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#F8DEB7" :percent="(data.vfdata/34.8*100).toFixed(1)" activeColor="#F8B753" active
					 stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						偏高
					</view>
					<view>
						超高
					</view>
				</view>
				<view v-if="ZFL" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">12.0</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">17.4</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">20.2</view>
					<view style="width: 10upx;height: 20upx;background-color: #F8B753;"></view>
				</view>
			</view>
		</view>
		<!--
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						肌肉量
					</view>
					<view style="font-size: 38upx;color: #007AFF;margin-top: 20upx;">
						{{data.jirouliang}}kg
					</view>
				</view>
				<view @click="toggle('JRL')">
					<image v-if="!JRL" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="JRL" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#99ADEF" :percent="(data.jirouliang/131.2*100).toFixed(1)" activeColor="#4B70EE" active stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						理想
					</view>
					<view>
						偏高
					</view>
				</view>
				<view v-if="JRL" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">58.4</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">65.6</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">72.8</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
			</view>
		</view>
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						肌肉率
					</view>
					<view style="font-size: 38upx;color: #007AFF;margin-top: 20upx;">
						{{data.jiroulv}}
					</view>
				</view>
				<view @click="toggle('JRLV')">
					<image v-if="!JRLV" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="JRLV" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#99ADEF" :percent="(data.jiroulv/164*100).toFixed(1)" activeColor="#4B70EE" active stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						理想
					</view>
					<view>
						偏高
					</view>
				</view>
				<view v-if="JRLV" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">73</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">82</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">91</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
			</view>
		</view>
		-->

		<!-- 第九个进度条 骨骼肌 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						骨骼肌
					</view>
					<view style="font-size: 38upx;color: #007AFF;margin-top: 20upx;">
						{{data.skm}}
					</view>
				</view>
				<view @click="toggle('GGJ')">
					<image v-if="!GGJ" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="GGJ" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#99ADEF" :percent="(data.skm/42.8*100).toFixed(1)" activeColor="#4B70EE" active
					 stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						理想
					</view>
					<view>
						偏高
					</view>
				</view>
				<view v-if="GGJ" style="width: 90%;margin: 10upx 5%;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">17.5</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">21.4</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">25.3</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
			</view>
		</view>
		<!-- 第十个进度条 水分率 -->
		<view class="">
			<view style="display: flex;justify-content: space-between;padding: 30upx 30upx 0 30upx;">
				<view>
					<view>
						水分率
					</view>
					<view style="font-size: 38upx;color: #007AFF;margin-top: 20upx;">
						{{data.bwr}}
					</view>
				</view>
				<view @click="toggle('SFL')">
					<image v-if="!SFL" style="width: 50upx;height: 50upx;" src="../../static/user/right.png" mode=""></image>
					<image v-if="SFL" style="width: 50upx;height: 50upx;" src="../../static/user/bottom.png" mode=""></image>
				</view>
			</view>
			<view style="width: 100%;position: relative;">
				<view style="border-radius: 10upx;height: 20upx;overflow: hidden;width: 90%;margin: 50upx 5% 0;">
					<progress backgroundColor="#99ADEF" :percent="(data.bwr/140*100).toFixed(1)" activeColor="#4B70EE" active
					 stroke-width="14" />
				</view>
				<view style="width: 90%;margin: 20upx 5%;display: flex;justify-content: space-around;">
					<view>
						偏低
					</view>
					<view>
						标准
					</view>
					<view>
						理想
					</view>
					<view>
						偏高
					</view>
				</view>
				<view v-if="SFL" style="width: 90%;margin: 10upx 5% 80upx;">
					<view>
						[超重]BMI超重会面临心脏病,高血压等风险.
					</view>
					<view>
						[建议]BMI超重会面临心脏病,高血压等风险.
					</view>
				</view>
				<view style="position: absolute;left: 27.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -28upx;">55</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 50%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">70</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
				<view style="position: absolute;left: 72.5%;top: -33upx;text-align: center;">
					<view style="margin-left: -8upx;">85</view>
					<view style="width: 10upx;height: 20upx;background-color: #4B70EE;"></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {},
				measurementId: "",
				BMI: false,
				TZL: false,
				YTB: false,
				JCDX: false,
				TZ: false,
				ZFL: false,
				JRL: false,
				JRLV: false,
				GGJ: false,
				SFL: false,
			}
		},
		onLoad(e) {
			console.log(e.id)
			// this.measurementId = 23
			this.getServerData(e.id)
		},
		methods: {
			// 切换
			toggle(type) {
				this[type] = !this[type]
			},
			async getServerData(measurementId) {
				uni.showLoading({
					title: "正在加载数据..."
				})

				let {
					data: {
						datas
					}
				} = await this.$myRuquest({
					url: "/coach/body/getBodyMeasurement",
					data: {
						measurementId,
					}
				})
				console.log(datas);
				this.data = datas;
				uni.hideLoading();
			},
		}
	}
</script>

<style>
	page {
		background-color: #fff;
	}
</style>
